[FORMAT "WCOFF"]
[INSTRSET "i486p"]
[BITS 32]
[FILE "api_0x0b.nas"]
	GLOBAL _api_point
	
[SECTION .text]

;------------------------------------------
;在窗口画点
;ebx=窗体句柄
;esi=显示位置的x坐标
;edi=显示位置的y坐标
;eax=色号
;------------------------------------------
_api_point: ;void api_point(int win, int x, int y, int col);
	push edi
	push esi
	push ebx
	mov edx,0xb
	mov ebx,[esp+16] ;win
	mov esi,[esp+20] ;x
	mov edi,[esp+24] ;y
	mov eax,[esp+28] ;col
	int 0x40
	pop ebx
	pop esi
	pop edi
	ret